//
//  News.m
//  CarHome
//
//  Created by lanou3g on 15-5-3.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "News.h"
#import "NewsInfo.h"

@implementation News

- (instancetype)init
{
    self = [super init];
    if (self) {
        _list = [[NSMutableArray alloc] initWithCapacity:0];
    }
    return self;
}

- (void)setList:(NSMutableArray *)list {
    for (NSMutableDictionary *item in list) {
        NewsInfo *ai = [[NewsInfo new] autorelease];
        [ai setValuesForKeysWithDictionary:item];
        [_list addObject:ai];
    }
}

- (void)dealloc {
    [_isloadmore release];
    [_list release];
    [_rowcount release];
    
    [super dealloc];
}

@end
